#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[]) {

    int a = 0, i = 0, sum = 0;
    scanf("%d", &a);
    int sx = a * a - a + 1;
    int snxh = a * ((a * a - a + 1)) + 2 * a * (a - 1) / 2;

    printf("%d*%d*%d=%d=", a, a, a, snxh);
    for (i = sx;; i+=2)
    {
        sum += i;
        printf("%d", i);
        if(sum!=snxh){
            printf("+");
        }else{
            break;
        }
    }


    return 0;
}